<%@page import="com.pkg.login.Constants"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.8.3.js"></script>
<%
response.setHeader("Cache-Control","no-cache,no-store,must-revalidate");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires", 0);
%>

<SCRIPT type="text/javascript">  
document.onkeydown = function(){
    if(window.event && window.event.keyCode == 116){ // Capture and remap F5  
        window.event.keyCode = 505;  
    }
    if(window.event && window.event.keyCode == 505){ // New action for F5  
        return false;  // Must return false or the browser will refresh anyway  
   }  }
             window.history.forward();
             function noBack() { 
                  window.history.forward(); 
             }
        </SCRIPT>
</head>
<body onload="noBack()">

<script type="text/javascript">
 

	var auto = setInterval(    function ()
		     {
				$('#count').empty();
				$('#count').load('reload-window.jsp').fadeIn("slow");
		     }, 5000); // refresh every 5000 milliseconds

     var auto = setInterval(    function ()
		     {
				$('#curuser').empty();
				$('#curuser').load('latestUser.jsp').fadeIn("slow");
		     }, 5000); // refresh every 5000 milliseconds

 
</script>
<div id="count"></div>

<br/>
<br/>User List <br/>
<div id="curuser"></div>

    <h2>Hello, <s:property value="username" />...! <%= session.getAttribute("curUser") %></h2>  <a href="logout">Logout</a> <br/>
    <h4>Total logged in user :  <%= Constants.usercount %></h4>
</body>
</html>